package com.data.modules.log.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import com.data.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 业务操作日志记录
 * @Author: data-boot
 * @Date:   2022-03-24
 * @Version: V1.0
 */
@Data
@TableName("sys_oper_log")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="sys_oper_log对象", description="业务操作日志记录")
public class SysOperLog implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**模块名称*/
	@Excel(name = "模块名称", width = 15)
    @ApiModelProperty(value = "模块名称")
    private String applicationName;
	/**子模块*/
	@Excel(name = "子模块", width = 15)
    @ApiModelProperty(value = "子模块")
    private String subModel;
	/**操作描述*/
	@Excel(name = "操作描述", width = 15)
    @ApiModelProperty(value = "操作描述")
    private String detail;
	/**业务ID*/
	@Excel(name = "业务ID", width = 15)
    @ApiModelProperty(value = "业务ID")
    private String busId;
	/**动作*/
	@Excel(name = "动作", width = 15)
    @ApiModelProperty(value = "动作")
    private String action;
	/**旧数据*/
	@Excel(name = "旧数据", width = 15)
    @ApiModelProperty(value = "旧数据")
    private String oldValue;
	/**新数据*/
	@Excel(name = "新数据", width = 15)
    @ApiModelProperty(value = "新数据")
    private String newValue;
	/**操作人IP*/
	@Excel(name = "操作人IP", width = 15)
    @ApiModelProperty(value = "操作人IP")
    private String loginIp;
	/**操作人姓名*/
	@Excel(name = "操作人姓名", width = 15)
    @ApiModelProperty(value = "操作人姓名")
    private String operatorName;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
}
